<template>
  <el-card>
    <div slot="header" class="clearFix">
      <div class="header">
        <span>线上热门搜索</span>
        <el-dropdown>
          <i class="el-icon-more" />
          <el-dropdown-menu slot="dropdown">
            <el-dropdown-item>黄金糕</el-dropdown-item>
            <el-dropdown-item>黄金糕</el-dropdown-item>
            <el-dropdown-item>黄金糕</el-dropdown-item>
            <el-dropdown-item>黄金糕</el-dropdown-item>
            <el-dropdown-item>黄金糕</el-dropdown-item>
          </el-dropdown-menu>
        </el-dropdown>
      </div>
    </div>
    <div>
      <el-row :gutter="10">
        <el-col :span="12">
          <LineCharts />
        </el-col>
        <el-col :span="12">
          <LineCharts />
        </el-col>
      </el-row>
      <!-- table表格 -->
      <el-table size="mini" :data="tableData" style="width: 100%" border>
        <el-table-column align="center" type="index" label="排名" width="80" />
        <el-table-column align="center" label="搜索关键字" width="width" />
        <el-table-column align="center" sortable label="用户数" width="width" />
        <el-table-column align="center" sortable label="周涨幅" width="width" />
      </el-table>
      <!-- 分页 -->
      <el-pagination align="right" layout="prev, pager, next" :total="50" />
    </div>
  </el-card>
</template>

<script>
import LineCharts from './lineCharts'
export default {
  name: 'Search',
  components: {
    LineCharts
  },
  data() {
    return {
      tableData: []
    }
  }
}
</script>

<style>
.header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding: 5px 0;
}
</style>
